package com.zhang.service.impl;

import com.zhang.mapper.IUserMapper;
import com.zhang.pojo.UserBean;
import com.zhang.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class UserServiceImpl implements IUserService {
    @Autowired
    private IUserMapper userMapper;

    @Override
    public List<UserBean> findAll() {
        return userMapper.findAll();
    }

    @Override
    public void add(UserBean userBean) {
        userMapper.add(userBean);
    }
}
